package com.crm.business.crm.mapper;



import com.crm.common.crm.entity.BO.HpCrmLeadsDistributionRecordBO;
import com.crm.common.crm.entity.VO.HpCrmLeadsDistributionRecordVO;

import java.util.List;

/**
 * 线索分配记录Mapper接口
 *
 * @author beiluo
 * @date 2021-06-18
 */
public interface HpCrmLeadsDistributionRecordMapper
{
    /**
     * 查询线索分配记录
     *
     * @param id 线索分配记录ID
     * @return 线索分配记录
     */
    public HpCrmLeadsDistributionRecordVO selectHpCrmLeadsDistributionRecordById(Long id);

    /**
     * 查询线索分配记录列表
     *
     * @param hpCrmLeadsDistributionRecord 线索分配记录
     * @return 线索分配记录集合
     */
    public List<HpCrmLeadsDistributionRecordVO> selectHpCrmLeadsDistributionRecordList(HpCrmLeadsDistributionRecordBO hpCrmLeadsDistributionRecord);

    /**
     * 新增线索分配记录
     *
     * @param hpCrmLeadsDistributionRecord 线索分配记录
     * @return 结果
     */
    public int insertHpCrmLeadsDistributionRecord(HpCrmLeadsDistributionRecordBO hpCrmLeadsDistributionRecord);

    /**
     * 修改线索分配记录
     *
     * @param hpCrmLeadsDistributionRecord 线索分配记录
     * @return 结果
     */
    public int updateHpCrmLeadsDistributionRecord(HpCrmLeadsDistributionRecordBO hpCrmLeadsDistributionRecord);

    /**
     * 删除线索分配记录
     *
     * @param id 线索分配记录ID
     * @return 结果
     */
    public int deleteHpCrmLeadsDistributionRecordById(Long id);

    /**
     * 批量删除线索分配记录
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteHpCrmLeadsDistributionRecordByIds(String[] ids);
}
